package com.yy.feign;

import com.yy.common.Resault;
import com.yy.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service")
public interface MemberFeign {
    /**
     * 得到用户信息
     */
    @GetMapping("member/getMember")
    public User getMember(@RequestParam("userId") Integer userId);

    /**
     * 修改用户信息
     */
    @PostMapping("member/updateMember")
    public Resault updateMember(@RequestBody User user);
}
